<!DOCTYPE html>
<html lang="en" xmlns:th=http://www.thymeleaf.org>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<link rel="stylesheet" th:href="@{/css/add.css}"/>
<script type="text/javascript" src="/js/jq.js"></script>
<body>
<div class="di">
    <form th:action="@{/updateUU/}+${u[0].getId()}">
        <table  class="tb">
            <!--<tr>
                <td style="text-align: right">id：</td>
                <td>
                    <input type="text"  th:value="${u[0].getId()}" name="id"/>
                </td>

            </tr>-->
            <tr>
                <td style="text-align: right">用户名：</td>
                <td>
                    <input type="text" name="name" th:value="${u[0].getName()}" id="na"/>
                </td>

            </tr>
            <tr>
                <td style="text-align: right"> 密 码 ：</td>
                <td>
                    <input type="text" name="password" th:value="${u[0].getPassword()}" id="pa"/>
                </td>
            </tr>
            <tr>
                <td style="text-align: right"> 权 限 ：</td>
                <td>

                    <input type="text" name="perms" th:value="${u[0].getPerms()}" id="se">
                </td>
            </tr>
        </table>
        <input type="submit" value="修改" class="btn" id="btn"/>
    </form>
</div>
</body>
<script>
    $(function () {
        $("#btn").click(function () {
            if($("na").val()=="" || $("#pa").val()=="" || $("#se").val()==""){
                alert("信息不能为空")
            }
        })
    })
</script>
</html>